Skip to content

Added sorting cookbook page#365

Draft
marcusrein wants to merge 1 commit intographprotocol:mainfrom
marcusrein:sorting-cookbook-page
Draft

Added sorting cookbook page#365
marcusrein wants to merge 1 commit intographprotocol:mainfrom
marcusrein:sorting-cookbook-page

Conversation

@marcusrein
Copy link
Member

Sorting cookbook draft PR added as per Simon.

@marcusrein marcusrein added the documentation Improvements or additions to documentation label May 1, 2023
Copy link
Contributor

@schmidsi schmidsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally it is a very good cook-book topic. Although I think we should be very specific about the details and not only talk about the numerical value use-case.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the title is misleading. I suggest to use "Sort by IDs"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually no a big consideration. As of now, IDs should always be Bytes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there is a good reason to use ID which translates to string. Examples might be traits or unique names.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is accurate? Only for numerical values, sorting by Bytes and String feels off. If the ID is a transactionHash or a string, that sorting is fine.

So I suggest to be clear here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, this really depends on the use-case. So ideal for numerical values is not ideal for strings or bytes.

@itsjerryokolo itsjerryokolo force-pushed the sorting-cookbook-page branch from ef7bd37 to 91d252f Compare May 11, 2023 12:46
@azf20
Copy link
Contributor

azf20 commented May 2, 2024

@marcusrein @schmidsi checking on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments